<link href="../addons/jy_yangjidan/imgs/index.css?v=20230106" rel="stylesheet">
<style type="text/css">
@-webkit-keyframes grace-fade-data-v-680ac6ab {
    0% {
        opacity: .6;
    }

    25% {
        opacity: 1;
    }

    50% {
        opacity: .6;
    }

    75% {
        opacity: 1;
    }

    100% {
        opacity: .6;
    }
}

@keyframes grace-fade-data-v-680ac6ab {
    0% {
        opacity: .6;
    }

    25% {
        opacity: 1;
    }

    50% {
        opacity: .6;
    }

    75% {
        opacity: 1;
    }

    100% {
        opacity: .6;
    }
}

.grace-full-loading.data-v-680ac6ab {
    width: 100%;
    height: 100%;
    background: #fff;
    position: fixed;
    z-index: 99;
    left: 0;
    top: 0;
    bottom: 0;
}

.grace-full-loading .content.data-v-680ac6ab {
    width: 300rpx;
    height: auto;
    position: absolute;
    z-index: 100;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%);
    animation: grace-fade-data-v-680ac6ab 3.5s infinite linear;
    opacity: .6;
    padding: 10rpx;
}

.grace-full-loading .img.data-v-680ac6ab {
    text-align: center;
    font-size: 0;
}

.grace-full-loading .img img.data-v-680ac6ab {
    width: 138rpx;
    height: 138rpx;
    border-radius: 100%;
}

.grace-full-loading .text.data-v-680ac6ab {
    line-height: 1.5em;
    font-size: 22rpx;
    margin-top: 6px;
    font-style: italic;
    text-align: center;
}
</style>
<div ng-if="!pagedata.pageloadding" class="grace-full-loading data-v-680ac6ab">
    <div class="content data-v-680ac6ab">
        <div class="image data-v-680ac6ab">
            <img class="data-v-680ac6ab" src="../addons/jy_yangjidan/imgs/xiaoji2.png" style="width:3rem;height:3rem;"></image>
        </div>
        <div class="text data-v-680ac6ab" style="font-size:0.5rem;color:#999">加载中...</div>
    </div>
</div>
<div ng-if="pagedata.pageloadding" class="fui-page fui-page-current">
<div class="fui-content" style='top:0;padding-bottom:0;background-image: url("../addons/jy_yangjidan/imgs/bg.jpg"); background-color: rgb(117, 206, 252);'>
<div class="tab-page data-v-21d0113d">
    <div class="data-v-21d0113d">
		<div class="chick" style="position: absolute; z-index: 5;bottom:3rem;top:10rem;left: 2%;display: block;width: 96%;">
		<div ng-repeat="item in pagedata.myjimailist" class="mygif" style="top:{{item.top}}px;left:{{item.left}}px;position: absolute;" href="javascript:;" ng-click="toogle(pagedata,'showji')">
			<img ng-if="item.type!=1" style="width:{{item.width}}px" src="../addons/jy_yangjidan/imgs/muji.png" draggable="false">
			<img ng-if="item.type==1" style="width:{{item.width}}px" src="../addons/jy_yangjidan/imgs/xiaoji2.png" draggable="false">
		</div>
		<div ng-if="!pagedata.myjimailist || pagedata.myjimailist.length==0" class="mygif" style="height: 180px;left:60px;top:120px;position: absolute;" href="javascript:;" ng-click="toogle(pagedata,'showji')">
		<img src="../addons/jy_yangjidan/imgs/xiaoji2.png" style="height: 180px;width:180px" draggable="false">
		</div>
		<div ng-if="pagedata.showji" class="chat" style="left:30px">
		<div data-v-41f7e184="" class="text" style="z-index:26">{{pagedata.jitips}}
		<div data-v-41f7e184="" style="display: inline-block; margin-left: 10px; width: 50px; text-align: center;">
		<div data-v-2b38bc31="" data-v-41f7e184="" class="grace-border-radius" style="background: rgb(175, 207, 255); border-radius: 16px;">
		<span data-v-41f7e184="" ng-if="pagedata.member.myji>0" ng-click="pagedata.showji=false;pagedata.showjishe=true" class="grace-white" style="line-height: 20px;"><span>去鸡舍</span></span>
		<span data-v-41f7e184="" ng-if="!pagedata.youmid && (!pagedata.member.myji || pagedata.member.myji<=0)" ng-click="pagedata.showweiji=true" class="grace-white" style="line-height: 20px;"><span>去认养</span></span>
		</div>
		</div>
		</div>
		<div data-v-41f7e184="" class="angel"></div>
		</div>
		<div data-v-41f7e184="" class="trough-1" style="z-index: 20;"></div>
		</div>
		<div data-v-41f7e184="" class="bee-box">
		<div data-v-41f7e184="" class="fengmi" href="javascript:;" ng-click="pagedata.getls_renwu(1);" style="background-image: url(&quot;../addons/jy_yangjidan/imgs/qp.png&quot;);">{{pagedata.renwu.ls_dayfee||0}}g</div>
		<div data-v-41f7e184="" class="soil two"></div><div data-v-41f7e184="" class="soil"></div>
		<div data-v-41f7e184="" class="bee">
		<div data-v-41f7e184="" class="bee-body"></div>
		</div>
		<div data-v-41f7e184="" class="bee bee-2">
		<div data-v-41f7e184="" class="bee-body">
		</div>
		</div>
		<div data-v-41f7e184="" class="triangle-box two">
		<div data-v-41f7e184="" class="item"></div>
		<div data-v-41f7e184="" class="item"></div>
		<div data-v-41f7e184="" class="item"></div>
		</div>
		</div>
        <div ng-if="!pagedata.youmid" class="bottom-menu _div data-v-21d0113d" style="bottom:12px;">
            <div href="javascript:;" ng-click="pagedata.showcv=true" class="item _div data-v-21d0113d">
                <div class="myfoods-box _div data-v-21d0113d">
					<div data-v-545d5eb1 class="beat grace-animate heartBeat">
                    <img class="data-v-21d0113d" src="../addons/jy_yangjidan/imgs/cv2.png">
					</div>
                </div>
                <label class="_span data-v-21d0113d">贡献值</label>
                <div class="grace-badge grace-bg-red grace-badge-absolute data-v-21d0113d">可领取</div>
            </div>
            <div href="javascript:;" ng-click="pagedata.showhaoyou=true" class="item _div data-v-21d0113d">
                <div class="myfoods-box _div data-v-21d0113d">
                    <img class="data-v-21d0113d" src="../addons/jy_yangjidan/imgs/share.png">
                </div>
                <label class="_span data-v-21d0113d">合伙人</label>
            </div>
			<div href="javascript:;" ng-click="pagedata.showfansqun=true" class="item _div data-v-21d0113d">
                <div class="myfoods-box _div data-v-21d0113d">
                    <img class="data-v-21d0113d" src="../addons/jy_yangjidan/imgs/fansqun.png">
                </div>
                <label class="_span data-v-21d0113d">粉丝群</label>
            </div>
			<div ng-if="!pagedata.youmid" href="javascript:;" ng-click="pagedata.showbuyji=true" class="item _div data-v-21d0113d">
                <div class="myfoods-box _div data-v-21d0113d">
                    <img class="data-v-21d0113d" src="../addons/jy_yangjidan/imgs/xiaoji.png">
                </div>
                <label class="_span data-v-21d0113d">租养鸡</label>
            </div>
            <div href="javascript:;" ng-click="pagedata.showjishe=true" class="myfoods _div data-v-21d0113d">
                <div class="myfoods-box _div data-v-21d0113d">
                    <img class="data-v-21d0113d" src="../addons/jy_yangjidan/imgs/weishi.png">
                </div>
                <div class="grace-badge grace-bg-red grace-badge-absolute data-v-21d0113d">喂饲料</div>
            </div>
        </div>
        <div ng-if="!pagedata.youmid" class="top-menu _div data-v-21d0113d c" style="z-index:20;top:100px">
            <div class="item data-v-21d0113d" href="javascript:;" ng-click="main.uplookurl='jy_yangjidan/index/getls_renwu/type=4';access_json(pagedata.pluginset.shoplink);">
                <div class="_div data-v-21d0113d">
                    <img class="data-v-21d0113d" src="../addons/jy_yangjidan/imgs/shoping.png">
                </div>
                <div class="_span grace-border-radius">商城</div>
            </div>
			<div class="item data-v-21d0113d" href="javascript:;" ng-click="access_json('jy_yangjidan/jimai/');">
                <div class="_div data-v-21d0113d">
                    <img class="data-v-21d0113d" src="../addons/jy_yangjidan/imgs/jimai.png">
                </div>
                <div class="_span grace-border-radius">挂卖</div>
            </div>
            <div href="javascript:;" ng-click="pagedata.upposter();" class="item data-v-21d0113d">
                <div class="_div data-v-21d0113d">
                    <img class="data-v-21d0113d" src="../addons/jy_yangjidan/imgs/send.png" style="padding:0.2rem;">
                </div>
                <div class="_span grace-border-radius">海报</div>
            </div>
            <div class="item data-v-21d0113d" ng-click="pagedata.showhome=true">
                <div class="_div data-v-21d0113d">
                    <img class="data-v-21d0113d" src="../addons/jy_yangjidan/imgs/jidan.png" style="padding:0.2rem;">
                </div>
                <div class="_span grace-border-radius">我的</div>
            </div>
            <div ng-if="pagedata.pluginset.nokefu!=1" class="item data-v-21d0113d" ng-click="pagedata.itemtokefu()">
                <div class="_div data-v-21d0113d">
                    <img class="data-v-21d0113d" src="../addons/jy_yangjidan/imgs/chat1.png" style="padding:0.2rem;">
                </div>
                <div class="_span grace-border-radius">客服</div>
            </div>
        </div>
		<div ng-if="pagedata.youmid" class="top-menu _div data-v-21d0113d c" style="z-index:20;top:100px">
            <div class="item data-v-21d0113d" href="javascript:;" ng-click="main.uplookurl='jy_yangjidan/index/getls_renwu/type=4';access_json(pagedata.pluginset.shoplink);">
                <div class="_div data-v-21d0113d">
                    <img class="data-v-21d0113d" src="../addons/jy_yangjidan/imgs/shoping.png">
                </div>
                <div class="_span grace-border-radius">商城</div>
            </div>
			<div class="item data-v-21d0113d" href="javascript:;" ng-click="pagedata.jiahaoyou();">
                <div class="_div data-v-21d0113d">
                    <img class="data-v-21d0113d" src="../addons/jy_yangjidan/imgs/haoyoulogo.png">
                </div>
                <div class="_span grace-border-radius">{{pagedata.member.ishaoyou==1?'删好友':'加好友'}}</div>
            </div>
			<div class="item data-v-21d0113d" href="javascript:;" ng-click="access_json('jy_yangjidan/index/');">
                <div class="_div data-v-21d0113d">
                    <img class="data-v-21d0113d" src="../addons/jy_yangjidan/imgs/xiaoji2.png">
                </div>
                <div class="_span grace-border-radius">我的</div>
            </div>
		</div>
        <div class="head-chick data-v-21d0113d">
            <div class="head-chick-left data-v-21d0113d">
                <img class="head-chick-left data-v-21d0113d" ng-src="{{tomedia(pagedata.member.avatar) ||'../addons/jy_yangjidan/resource/images/avatar.png'}}">
            </div>
            <div class="head-chick-right data-v-21d0113d" style="margin-top:-0.2rem">
                <img class="data-v-21d0113d" src="../addons/jy_yangjidan/imgs/xiaoji2.png" style="width:100%;height:100%;">
            </div>
            <label class="_span data-v-21d0113d">{{pagedata.member.myji||0}}只</label>
            <div class="head-chick-right data-v-21d0113d" style="padding:0.4rem">
                <img class="data-v-21d0113d" src="../addons/jy_yangjidan/imgs/jidan.png" style="width:100%;height:100%;">
            </div>
            <label class="_span data-v-21d0113d">{{pagedata.member.jd||0}}个</label>
        </div>
    </div>
</div>
</div>
</div>
<div ng-if="pagedata.showmsg" class="popup" style="z-index: 1008;">
	<div class="popup-body">
		<div class="popup-center" style="width: 70%;">
			<div ng-click="pagedata.showmsg=false" class="closebtn"><i class="icon jinyunicon icon-wrong"></i></div>
			<div class="weui_msg">
					<div class="weui_text_area" style="margin-bottom:15px">
						<p class="weui_msg_desc">{{pagedata.showmsg}}</p>
					</div>
					<div class="modal-footer">
						<div class="mod-check" ng-click="pagedata.showmsg=false">确认</div>
					</div>
			</div>
		</div>
	</div>
</div>
<div id="attention" ng-if="pagedata.showqrcode==1">
	<div class="attention-alert" style="width:80%;left:10%">
					<div class="attention-content" style="padding: 1.5rem 0;background:none;height:auto">
						<div class="col-jy-1" style="text-align: center;">
							<img ng-src="{{tomedia(pagedata.kefuqr) || '../core/resource/images/nopic.jpg'}}" alt=""style="width: 100%">
						</div>
						<p >长按指纹识别图中二维码</p>
					</div>
					<i class="icon icon-cuowu" ng-click="pagedata.showqrcode=0" style="font-size:1.5rem;color:#fff;position: absolute;top:105%;left:45%"></i>
	</div>
</div>
<div ng-if="pagedata.showsimid" class="popup">
	<div class="popup-body">
		<div class="popup-center" style="background:#fc6d60">
			<style>
				input{ caret-color: #fff}
				.fui-cell-group .fui-cell .fui-cell-info  ::-webkit-input-placeholder{
					color: #fff
				}
				.fui-cell-group .fui-cell .fui-cell-info {
					font-size: 0.85rem;
					color: #fff;
				}
				.fui-cell-group .fui-cell .fui-input{
					margin-left:0.3rem;
					border-bottom: 1px solid #f2f2f2;
					border-radius:0;
				}
			</style>
			<i class="closed icon icon-cuowu" ng-click="pagedata.showsimid=false"></i>
			 <div class='fui-cell-group fui-cell-group-o' style="margin:0.5rem 2rem;padding-top:0.5rem;background:#fc6d60">
				<div class='fui-cell-title c' style="color:#fff">核对绑定私厨
				</div>
				<div class='fui-cell'>
					<div class='fui-cell-label big' style='width:auto;color:#fff'><i class="icon icon-dianpu" style="font-size:0.8rem"></i></div>
					<div class='fui-cell-info'><input type='text' class='fui-input' placeholder="私厨ID" ng-model="pagedata.post.simid"></div>
				</div>
			</div>
			<div class="weui_btn_area" style="margin:2rem;">
				<a class='weui_btn weui_btn_primary' style="border-radius:1rem;background-color:#fff;color:#fc6d60" ng-click="post(pagedata.post,'/index/simid/')">确定</a>
			</div>
		</div>
	</div>
</div>
<div ng-include="sys_html('_tihuo')"></div>
<div ng-include="sys_html('_maiji2')"></div>
<div ng-include="sys_html('_maijidan')"></div>
<div ng-include="sys_html('_jilog')"></div>
<div ng-include="sys_html('_cvlog')"></div>
<div ng-include="sys_html('_jifen2')"></div>
<div ng-include="sys_html('_fansqun')"></div>
<div ng-include="sys_html('_haoyou')"></div>
<div ng-include="sys_html('_home')"></div>
<div ng-include="sys_html('_renwu')"></div>
<div ng-include="sys_html('_shareall')"></div>
<div ng-include="sys_html('_weiji')"></div>
<div ng-include="sys_html('_jishe')"></div>
<div ng-include="sys_html('_buyji')"></div>
<div ng-include="sys_html('_cv')"></div>
<div ng-include="sys_html('_cvdui')"></div>
<div ng-include="sys_html('_poster')"></div>
<div ng-include="sys_html('_share')"></div>
<div ng-include="sys_html('_jiefee')"></div>
<script language="javascript">
setTimeout(function(){
	scope.pagedata.pageloadding=true
	scope.$evalAsync();
},1000);
scope.pagedata.tomessage=function(msg){
	scope.pagedata.showmsg=msg;
	scope.$evalAsync();
}
scope.pagedata.lookrenwu=function(type){
	if(type==5 && scope.pagedata.renwu.ls_renwu5==1){
		return false;
	}
	setTimeout(function(){
		scope.pagedata.getls_renwu(type);
	},3000);
}
scope.pagedata.upposter=function(){
	scope.get('jy_yangjidan/index/upposter/',function(res){
		console.log(res)
		scope.pagedata.showposter=true;
		scope.pagedata.posterimg=res.posterimg;
		scope.$evalAsync();
	});
}
scope.pagedata.itemtokefu=function(){
	if(scope.pagedata.pluginset.h5appkf==1 && window.config.fromh5wxapp==1 && window.config.container!='ttapp' && window.config.container!='baiduapp'){
		//H5小程序环境下
		var logo=scope.tomedia(scope.pagedata.account.logo);
		var title=scope.pagedata.account.title
		wx.miniProgram.navigateTo({
			url: '/pages/kefu/index?logo='+logo+'&title='+title
		})
	}else{
		if(scope.pagedata.pluginset.nokefu2!=1  && (!scope.pagedata.pluginset.kefutype_h5 || scope.pagedata.pluginset.kefutype_h5==0)){
			scope.access_json(scope.pagedata.pluginset.kflink);
		}else if(scope.pagedata.pluginset.nokefu2!=1  && scope.pagedata.pluginset.kefutype_h5==1){
			scope.pagedata.kefuqr=scope.pagedata.pluginset.kf_accountimg;
			scope.pagedata.showqrcode=1;
		}else if(scope.pagedata.pluginset.nokefu2!=1 && scope.pagedata.pluginset.kefutype_h5==2){
			scope.access_json(scope.pagedata.pluginset.appkflink)
		}else if(scope.pagedata.pluginset.nokefu2!=1 && scope.pagedata.pluginset.kefutype_h5==3){
			scope.access_json(scope.pagedata.pluginset.workerh5url);
		}else if(scope.pagedata.pluginset.nokefu2!=1 && scope.pagedata.pluginset.kefutype_h5==4){
			scope.pagedata.kefuqr=scope.pagedata.pluginset.guwenkfewm;
			scope.pagedata.showqrcode=1;
		}
		scope.$evalAsync();
	}
}
scope.pagedata.pay_submit=function(post,post_url,complete_url){
	complete_url=complete_url?complete_url:'jy_yangjidan/index/'
	scope.post_json(post_url,post,function(result){
		if(result.order_id){
			scope.pagedata.order_id=result.order_id;
			scope.$evalAsync();
			scope.tool.pay(result.pay_id,function(res){
					if(res.type=='success'){
						scope.message('支付成功！','success',complete_url);
					}else{
						scope.message('支付失败！','success',complete_url);
					}
			},'','',complete_url,complete_url);
		}else{
			scope.message(result);
		}
	});
}
scope.pagedata.pay_jifee=function(post,post_url,complete_url){
	complete_url=complete_url?complete_url:'jy_yangjidan/index/'
	if(scope.pagedata.jifeepay_id){
		scope.tool.pay(scope.pagedata.jifeepay_id,function(res){
					if(res.type=='success'){
						scope.message('支付成功！','success',complete_url);
					}else{
						scope.message('支付失败！','success',complete_url);
					}
		},'','',complete_url,complete_url);
	}else{
		scope.post_json(post_url,post,function(result){
			if(result.pay_id){
				scope.pagedata.jifeepay_id=result.pay_id;
				scope.$evalAsync();
				scope.tool.pay(result.pay_id,function(res){
						if(res.type=='success'){
							scope.pagedata.member.jiefee=0;
							scope.$evalAsync();
							scope.message('支付成功！','success',complete_url);
						}else{
							scope.message('支付失败！','success',complete_url);
						}
				},'','',complete_url,complete_url);
			}else{
				scope.message(result);
			}
		});
	}
}
</script>
<script>
scope.pagedata.toweiji=function(jiid,jiefee){
	jiid=jiid?jiid:0;
	jiefee=jiefee?jiefee:0;
	scope.get('jy_yangjidan/index/toweiji/jiid='+jiid+'&jiefee='+jiefee,function(msg){
			scope.pagedata.tomessage(msg);
			if(jiid>0){
				scope.pagedata.member.noweiji--
			}else{
				scope.pagedata.member.noweiji=0
			}
			if(scope.pagedata.showjishe){
				scope.tool.get_list('jy_yangjidan/myji/list/',true);
			}
			scope.$evalAsync();
	});
}
</script>